<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
	<%@ include file="/jsp/imports/header.jsp" %>
	<script>
		function foward(acao){
			document.form.action = acao;
			document.form.submit();
		}
	</script>
</head>

<body>
<c:set var="page" value="abrirAlteraProfessor.do?acao=pessoais" scope="session"/>
<div class="contentwrap">
	
<div class="headwrap">


  <%@ include file="/jsp/imports/top.jsp" %>   
    


	<div class="container content">
		
	  <div class="span-20 append-2 prepend-2">
	  
	  
	   
        <%@ include file="/jsp/imports/mensagens.jsp" %>
  	
  	
    	
  <%@include file="/jsp/imports/menuLateral.jsp" %>
  



		  <div class="span-12 services last">
		  	<h2 align="center"><fmt:message key="alteraDadosProfesor.titulo"/></h2>
			<br/>
			<form action="alteraProfessor.do?acao=dados" method="post" name="form">
				<input type="hidden" name="idProfessor" value="${param.idProfessor == null ? professor.idProfessor : param.idProfessor}"/>
				<input type="hidden" name="tipo" value="${param.tipo == null ? professor.tipo.value : param.tipo}"/>
				<input type="hidden" name="senha" value="${param.senha == null ? professor.senha : param.senha}"/>
				<table>
					<tr>
						<td><fmt:message key="nome"/>*</td>
						<td><input type="text" name="nome" value="${param.nome == null ? professor.nome : param.nome}"/></td>
					</tr>
					<tr>
						<td><fmt:message key="matricula"/>*</td>
						<td><input type="text" name="matricula" value="${param.matricula == null ? professor.matricula : param.matricula}"/></td>
					</tr>
					<tr>
						<td><fmt:message key="email"/></td>
						<td><input type="text" name="email" value="${param.email == null ? professor.email : param.email}" readonly="readonly"/></td>
					</tr>
					<tr>
						<td><fmt:message key="novaSenha"/></td>
						<td><input type="password" name="novaSenha" value="${param.novaSenha}"/></td>
					</tr>
					<tr>
						<td><fmt:message key="confirmaSenha"/></td>
						<td><input type="password" name="novaSenha2" value="${param.novaSenha2}"/></td>
					</tr>
					<tr>
					</tr>
				</table>
				<input type="submit" value="<fmt:message key="botao.alterar"/>"/>
				<input type="button" value="<fmt:message key="botao.cancelar"/>" onclick="foward('${pageContext.request.contextPath}/jsp/index.jsp')"/>
				<br/>
				<h5><fmt:message key="camposObrigatorios"/></h5>
			</form>
		  </div>
			
		  <div class="final"></div>
		
		</div>
	
	</div>

</div>

</div>

 
<!-- Rodape -->
<%@ include file="/jsp/imports/footer.jsp" %>
</body>
</html>